import request from '@/utils/request'
import qs from 'qs'
//查询安全分类列表
export function listMessage(query) {
    return request({
      url: '/aqsc/safeClassify/list',
      method: 'get',
      params: query
    })
  }
  // 查询所属机构列表
export function getDeptList(){
  return request({
    url: '/system/user/deptTree',
    method: 'get',
  })
}
// 查询用户详细
export function getMessageById(id) {
  return request({   
    url: '/aqsc/safeClassify/' + id,
    method: 'get',
    responseType: 'json'
  })
}
// 新增用户
export function addSafeClassify(data) {
  return request({
    url: '/aqsc/safeClassify',
    method: 'post',
    data: data
  })
}
//删除角色
export function delUser(ids){
  return request({
    url: 'aqsc/safeClassify/' + ids,
    method: 'delete'
  })
}
